/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mediationbackend;

/**
 *
 * @author s.sathyavarthan
 */
public class ProcessGroup extends ThreadGroup implements Runnable{
    private String stream;
    private String mediator;
    private Ruller ruller;

    
    public ProcessGroup(String stream,String mediator){
           super(stream+"-"+mediator);
           this.stream=stream;
           this.mediator=mediator;
           
           initialize();
    }
    
    @Override
    public void run(){
        //if there are files to be process, then start new thread and process.
        while(true){
            
        }
    }

    private void initialize(){
        this.ruller = getRuller(getStream(),getMediator());
        
    }
    
    private Ruller getRuller(String stream, String mediator){
        return null;
    }
    
    
    // Getters and Setters continue here after 
    public void setStream(String stream) {
        this.stream = stream;
    }

    public String getStream() {
        return stream;
    }

    public String getMediator() {
        return mediator;
    }
    
    public void setMediator(String mediator) {
        this.mediator = mediator;
    }

    protected void setRuller(Ruller ruller) {
        this.ruller = ruller;
    }

    protected Ruller getRuller() {
        return ruller;
    }
    
}
